﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DescendingOrder
{
    class Program
    {
        static void Main(string[] args)
        {
            int firstValue = 35;
            int secondValue = 9;
            int thirdValue = 87;

            if (firstValue > secondValue)
            {
                if (firstValue > thirdValue)
                {
                    if (thirdValue > secondValue)
                    {
                        Console.WriteLine("{0} {1} {2}", firstValue,thirdValue,secondValue);
                    }
                    else
                    {
                        Console.WriteLine("{0} {1} {2}", firstValue,  secondValue,thirdValue);
                    }
                    
                }
                else
                {
                    Console.WriteLine("{0} {1} {2}", thirdValue,firstValue, secondValue);
                }
            }
            else
            {
                if (secondValue > thirdValue)
                {
                    if (thirdValue > firstValue)
                    {
                        Console.WriteLine("{0} {1} {2}", secondValue,thirdValue,firstValue);
                    }
                    else
                    {
                        Console.WriteLine("{0} {1} {2}", secondValue, firstValue, thirdValue);
                    }
                    
                }
                else
                {
                    Console.WriteLine("{0} {1} {2}",  thirdValue, secondValue,firstValue);
                }
            }
        }
    }
}
